<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>mix-blend-mode</title>
    <style>
        body{
            margin: 0;
        }
        div {
            height: 100vh;
            background: linear-gradient(45deg, #000 0, #000 50%, #fff 50%);
        }

        div::before {
                content: "LOREM IPSUM";
                position: absolute;
                font-size: 80px;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                color: #fff;
                mix-blend-mode: difference;
                animation: move 10s infinite linear alternate;
            }
        @keyframes move {
            0% {
                transform: translate(-30%, -50%);
            }
            100% {
                transform: translate(-70%, -50%);
            }
        }
    </style>
</head>

<body>



        <div class="box">
        </div>



</body>

</html>